/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #a8e6cf 0%, #88d8c0 50%, #7fcdcd 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 50%, #a7e0d4 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;        background: #26a69a;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge i {
    font-size: 1rem;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00695c 0%, #00897b 50%, #26a69a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Main Content */
.main-content {
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e8 50%, #e0f2f1 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: linear-gradient(135deg, #f3e5f5 0%, #e8f5e8 50%, #e0f7fa 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(178, 223, 219, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #26a69a, #00897b);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.cicd-icon {
    background: linear-gradient(135deg, #26a69a, #00897b);
}

.iac-icon {
    background: linear-gradient(135deg, #26a69a, #00695c);
}

.automation-icon {
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.question-item {
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.question-item:hover {
    border-left-color: #26a69a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.question-item p {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Chat Section */
.chat-section {
    margin-top: 3rem;
}

.chat-container {
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e8 50%, #e0f2f1 100%);
    border-radius: 16px;
    border: 1px solid rgba(178, 223, 219, 0.3);
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #26a69a, #00897b);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.chat-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.chat-header p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.chat-messages {
    padding: 1.5rem;
    background: white;
    scroll-behavior: smooth;
    /* Remove max-height to allow full content display */
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.message:last-child {
    margin-bottom: 0;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #26a69a, #00897b);
    color: white;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: #26a69a;
    color: white;
}

.message-content {
    flex: 1;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.user-message .message-content {
    background: #eff6ff;
    border-color: #dbeafe;
}

.message-content p {
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-input-container {
    padding: 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.chat-input-wrapper {
    display: flex;
    gap: 1rem;
}

.chat-input {
    flex: 1;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: #26a69a;
    box-shadow: 0 0 0 3px rgba(38, 166, 154, 0.1);
}

.send-button {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #26a69a, #00897b);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(38, 166, 154, 0.3);
}

.send-button:active {
    transform: translateY(0);
}

/* Loading Animation */
.typing-indicator {
    display: inline-block;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #26a69a;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .card {
        padding: 1.2rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .question-item p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .chat-input-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .send-button {
        align-self: flex-end;
        padding: 0.75rem 1.5rem;
    }
    
    .chat-messages {
        padding: 1rem;
        /* Remove height restrictions on mobile too */
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .header {
        padding: 2rem 1rem;
    }
}